import { createPinia } from 'pinia'
import { App } from 'vue'
import persistence from 'pinia-plugin-persistedstate'

export function setupStore(app: App) {
  const pinia = createPinia()
  pinia.use(persistence)

  app.use(pinia)
}

export * from './modules'
